package cn.edu.lnpu.manage.cms.config;

import org.apache.commons.lang3.StringUtils;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
public class StringConverter implements Converter<String, String> {
    @Override
    public String convert(String source) {
        if (StringUtils.isBlank(source)) {
            return null;
        }
        return source;
    }
}
